def verify_card_number(card_num: str) -> str:
    if '-' in card_num:
        card_num = card_num.replace('-', '')
    if ' ' in card_num:
        card_num = card_num.replace(' ', '')
    account_nums = [int(char) for char in card_num]
    print(account_nums)
    i = 0
    length = len(account_nums) - 1
    while i < length:
        index = length - i -1
        value = 2 * account_nums[index]
        account_nums[index] = value if value < 10 else value - 9
        i += 2
    print(account_nums)
    total = sum(account_nums)
    if total % 10:
        return 'INVALID!'
    return 'VALID!'



if __name__ == '__main__':
    card_num = '4111-1111-1111-1111'
    card_num = '1234 5678 9012 3456'
    card_num = '453914881'
    print(verify_card_number(card_num))